package com.zcoj.pojo.Dto;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * 
 * @author 剩xia的盛夏
 * @date 2023/02/24 16:16
 */
@Data
@ApiModel("")
@Accessors(chain = true)
public class JudgeCase  implements Serializable {

    private static final long serialVersionUID = 2892248514883451461L;

    @ApiModelProperty(value = "", example = "1")
    @TableId(type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "Judge表提交测评id", example = "1")
    private Integer sid;

    @ApiModelProperty(value = "问题表的id", example = "1")
    private Integer pid;

    @ApiModelProperty(value = "用户id", example = "1")
    private Integer uid;

    @ApiModelProperty(value = "单个样例测评结果")
    private Integer status;

    @ApiModelProperty(value = "运行时间", example = "1")
    private Integer time;

    @ApiModelProperty(value = "分数")
    private Integer score;

    @ApiModelProperty(value = "运行内存", example = "1")
    private Integer memory;

    @ApiModelProperty(value = "测试案例id", example = "1")
    private Integer caseId;

    @ApiModelProperty(value = "样例输入文件名")
    private String inputName;

    @ApiModelProperty(value = "样例输出文件名")
    private String outputName;

    @ApiModelProperty(value = "信息提示")
    private String message;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

}
